<?php include("./inc/conn.inc");
$hove=4;
$p_rs=mysql_query("select * from jm_list where id='".$_GET['id']."'");
$p_row=mysql_fetch_array($p_rs);

$m_rs=mysql_query("select id,m_type,m_user,m_name,m_cname,m_sex,c_type,c_mode,m_ts_tel,m_pic from member where id='$p_row[member_id]'");
$m_row=mysql_fetch_array($m_rs);

if($m_row['m_type']==6){
   $m_url="http://$m_row[m_user].sandib2b.cn/";
   $m_url2="http://$m_row[m_user].sandib2b.cn/contact.htm";
}else{
   $m_url="http://www.sandib2b.cn/cn/template/$m_row[m_user]/";
   $m_url2="http://www.sandib2b.cn/cn/template/$m_row[m_user]/contact.html";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META http-equiv=X-UA-Compatible content=IE=7>
<title><?=$p_row[j_title]?></title>
<LINK href="/css/body.css" type=text/css rel=stylesheet>
<LINK href="/css/head.css" type=text/css rel=stylesheet>
<LINK href="/css/content.css" type=text/css rel=stylesheet>
<LINK href="/css/foot.css" type=text/css rel=stylesheet>
<LINK href="/css/application.css" type=text/css rel=stylesheet>
<LINK href="/css/carousel.css" type=text/css rel=stylesheet>

<script src="/js/prototype.js" type="text/javascript"></script>
<script src="/js/effects.js" type="text/javascript"></script>
<script src="/js/carousel.js" type="text/javascript"></script>
<style type="text/css">#Layer1 {height:230px;width:260px;position:absolute;top:224px;}</style>
</head>
<body>
<?php include("top.php");?>
<div id="mian" class="topside6 side">
<div class="title1">您当位置:  <a href="/">首页</a> > <a href="/jiameng/list-<?=$p_row[type_id1]?>/1.html"><?=$p_row[type_name1]?></a> > <a href="/jiameng/list-<?=$p_row[type_id2]?>/1.html"><?=$p_row[type_name2]?></a> > <?=$p_row[j_title]?></div>
<div class="onl"></div>
</div>
<div id="main" class="topside20 side">
<script type="text/javascript">/*960*90，加盟首页-创建于2011-11-9*/ var cpro_id = 'u672448';</script><script 
src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>
<div id="mian" class="topside20 sideyellow1">
<div class="title4 size14 b fontwhite"><?=$p_row[j_title]?></div>
<div class="leftmain topside6">
<div class="left">
<div class="proimages">
  <table width="266" height="233" border="0" cellpadding="0" cellspacing="0">
  <tr>
      <td align="center"><div id="Layer1" class="pngs"></div>
	  <?php if(trim($p_row['picture'])){?><img src="http://img.sandib2b.cn/<?=$p_row['picture']?>" alt="<?=$p_row[j_title]?>" <?=imgstr("http://img.sandib2b.cn/$p_row[picture]","263","233")?> align="absmiddle"><?php }else{?><img src="/images/no.jpg" width="263" height="233" alt="<?=$row[p_title]?>"><?php } ?></td>
    </tr>
  </table>
</div>
<div class="top7-2-6"><a href="#" style="CURSOR: hand" onClick="javascript:window.external.AddFavorite('http://jm.sandib2b.cn/jiameng/img/<?=$p_row['id']?>.html','<?=$p_row[j_title]?>')"><img src="/images/gy_65.gif" width="9" border="0" height="9">&nbsp;收藏此信息</a>&nbsp;&nbsp;<a href="/jiameng/img/<?=$p_row['id']?>.html" target="_blank"><img src="/images/picfd.gif" width="18" border="0" height="18">放大图片</a>

<br />
<br />
				<!-- Baidu Button BEGIN -->
				<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
					<table width="100%" height="57" border="0" align="center" cellpadding="0" cellspacing="5">
						<tr>
							<td rowspan="2" align="center" bgcolor="#ECE9D8">分<br />
							享<br />
							到</td>
							<td><a class="bds_qzone">QQ空间</a></td>
							<td><a class="bds_tsina">新浪微博</a></td>
							<td><a class="bds_tqq">腾讯微博</a></td>
						</tr>
						<tr>
							<td><a class="bds_renren">人人网</a></td>
							<td><a class="bds_tieba">百度贴吧</a></td>
							<td><span class="bds_more">更多</span><!--<a class="shareCount"></a>--></td>
						</tr>
					</table>
				</div>
				<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=524192" ></script>
				<script type="text/javascript" id="bdshell_js"></script>
				<script type="text/javascript">
	document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
</script>
				<!-- Baidu Button END -->


</div>
</div>
<div class="right">
  <table height="168" border="0" cellpadding="0" cellspacing="0">
    <tbody>
	<?php if($p_row[j_pinpai]){?>
      <tr>
        <td width="84" height="28" align="right" bgcolor="#F8F8F5"><span class="size14 b">产品品牌</span>：</td>
        <td width="286" height="28" bgcolor="#F8F8F5" class="size14 b">&nbsp;&nbsp;<?=$p_row[j_pinpai]?></td>
      </tr>
	  <?php }?>
	  <?php if($p_row[j_price]){?>
      <tr>
        <td height="28" align="right" ><span class="top6-3-1">加盟费：</span></td>
        <td height="28" >&nbsp;&nbsp;<?=$p_row[j_price]?></td>
      </tr>
	  <?php }?>
	  <?php if($p_row[j_bzj]){?>
      <tr>
        <td height="28" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">保证金额：</span></td>
        <td height="28" bgcolor="#F8F8F5"><span class="top6-3-1">&nbsp;&nbsp;<?=$p_row[j_bzj]?>万元</span></td>
      </tr>
	  <?php }?>
	  <?php if($p_row[j_ztze]){?>
      <tr>
        <td height="28" align="right" ><span class="top6-3-1">总投资额：</span></td>
        <td height="28" ><span class="top6-3-1">&nbsp;&nbsp;<?=$p_row[j_ztze]?>万元</span></td>
      </tr>
	  <?php }?>
	  <?php if($p_row[j_ppfyd]){?>
      <tr>
        <td height="28" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">品牌发源地：</span></td>
        <td height="28" bgcolor="#F8F8F5"><span class="top6-3-1">&nbsp;&nbsp;<?=$p_row[j_ppfyd]?></span></td>
      </tr>
	  <?php }?>
	  <?php if($p_row[j_ppls]){?>
      <tr>
        <td height="28" align="right" ><span class="top6-3-1">品牌历史：</span></td>
        <td height="28" >&nbsp;&nbsp;<?=$p_row[j_ppls]?>年</td>
      </tr>
	  <?php }?>
    </tbody>
  </table>
</div>
<div class="onl"></div>
</div>
<div class="rightmain topside6 rightside6 downside6">
  <ul class="companyinfo">
    <li><span class="size18 fontblue"><?=$m_row['m_cname']?></span></li>
    <li class="topside6">&nbsp;<a href="<?=$m_url?>" target="_blank"><img src="/images/home.gif" width="104" height="29" border="0" /></a>&nbsp;<a href="<?=$m_url2?>" target="_blank"><img src="/images/contact.gif" alt="联系方式" width="120" height="29" border="0" /></a></li>
    <li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$m_url2?>" target="_blank">公司介绍</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$m_url2?>" target="_blank">公司产品</a></li>
    <li>&nbsp;&nbsp;&nbsp;&nbsp;联系人：<?=$m_row[m_name]?>[<?=$m_row[m_sex]?>]</li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;企业类型：<?=$m_row['c_type']?></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;经营模式：<?=$m_row['c_mode']?></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;会员等级：<?php if($m_row['m_type']==6){?><a href="<?=$m_url?>certificate.htm" target="_blank"><img src="/images/member.gif" border="0" align="absmiddle" /></a><?php }else{echo "普通会员";}?></li>
<?php if($m_row[m_ts_tel]){?><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tel400">免费电话：<b class="fontred"><?=$m_row[m_ts_tel]?></b></span></li><?php }?>
    </ul>
</div>
<div class="onl"></div>
</div>
<?php if($m_row['m_type']==6){?>
<DIV class="topside6 sideyellow1" id=mian>
<DIV class="title3 size12"><SPAN>图片展示</SPAN>
<DIV class=onl></DIV></DIV>
<DIV class=company>
<DIV class=showlist>
<DIV style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">
<div class="wrapper">
<div id="prev-arrow-container">
<img src="/images/left3-disabled.gif" alt="Left3-disabled" width="27" height="144" id="prev-arrow" /></div>
     <div class="carousel-component" id="html-carousel">
          <div class="carousel-clip-region wh">
               <ul class="carousel-list">
<?php
$rs=mysql_query("select * from jm_img where jm_id='$p_row[id]' order by id asc limit 10");
while($row=mysql_fetch_array($rs)){
?>
                   <li><a href="/jiameng/img/<?=$p_row['id']?>-<?=$row['id']?>.html" target="_blank"><img src="http://img.sandib2b.cn/<?=$row[picture]?>" width="100" height="100" border="0" class="thumb" /><?=$row[img_title]?></a></li>
<?php }?>
              </ul>
         </div>
    </div>
<script type="text/javascript">
function initCarousel_html_carousel() {carousel = new Carousel('html-carousel', {animHandler:animHandler, animParameters:{duration:0.5}, buttonStateHandler:buttonStateHandler, nextElementID:'next-arrow', prevElementID:'prev-arrow', size:31})};Event.observe(window, 'load', initCarousel_html_carousel);
</script>
<div id="next-arrow-container"><img src="/images/right3-enabled.gif" alt="Right3-enabled" width="27" height="144" id="next-arrow" /></div>
<br class="clear" />
<script type="text/javascript">
<!--
function buttonStateHandler(button, enabled) {
 if (button == "prev-arrow") 
   $('prev-arrow').src = enabled ? "images/left3-enabled.gif" : "images/left3-disabled.gif"
 else 
   $('next-arrow').src = enabled ? "images/right3-enabled.gif" : "images/right3-disabled.gif"
}

function animHandler(carouselID, status, direction) {
  var region = $(carouselID).down(".carousel-clip-region")
  if (status == "before") {
    Effect.Fade(region, {to: 0.3, queue: { position:'end', scope: "carousel" }, duration: 0.2})
  }
  if (status == "after") {
    Effect.Fade(region, {to: 1, queue: { position:'end', scope: "carousel" }, duration: 0.2})
  }
}
//-->
</script>
</div>
</DIV>
</DIV>
<DIV class=onl></DIV></DIV>
<DIV class=onl></DIV></DIV>


















<?php }?>
<div id="mian" class="topside6 sideyellow1">
<div class="title3 size12"><span>详细信息</span>
<div class="onl"></div>
</div>
<table width="960" border="0" cellpadding="0" cellspacing="0" class="table">
  <tbody>
    <tr>
      <td >
<?php if($p_row[j_qdl]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">起订量：</span></td>
              <td width="312"><?=$p_row[j_qdl]?></td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>
<?php if($p_row[j_fhqx]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">发货期限：</span></td>
              <td width="312"><?=$p_row[j_fhqx]?></td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>
<?php if($p_row[j_scjhje]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">首次进货金额：</span></td>
              <td width="312"><?=$p_row[j_scjhje]?>万元</td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>
<?php if($p_row[j_ghzl]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">供货总量：</span></td>
              <td width="312"><?=$p_row[j_ghzl]?></td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>
<?php if($p_row[j_fzms]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">发展模式：</span></td>
              <td width="312"><?=$p_row[j_fzms]?></td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>
<?php if($p_row[j_hzfs]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">合作方式：</span></td>
              <td width="312"><?=$p_row[j_hzfs]?></td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>
<?php if($p_row[j_ghzk]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">供货折扣：</span></td>
              <td width="312"><?=$p_row[j_ghzk]?>折</td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>

<?php if($p_row[j_khhbl]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">可换货比率：</span></td>
              <td width="312"><?=$p_row[j_khhbl]?></td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>
<?php if($p_row[j_lsjgdw]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">零售价格定位：</span></td>
              <td width="312"><?=$p_row[j_lsjgdw]?>元</td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>
<?php if($p_row[j_mbxfqt]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">目标消费群体：</span></td>
              <td width="312"><?=$p_row[j_mbxfqt]?> 年龄段</td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>

<?php if($p_row[j_yjhbl]){?>	
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">预计回报率：</span></td>
              <td width="312"><?=$p_row[j_yjhbl]?></td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>
<?php if($p_row[j_yjhbzq]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">预计回报周期：</span></td>
              <td width="312"><?=$p_row[j_yjhbzq]?></td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>
<?php if($p_row[j_txqsyf]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">特许权使用费：</span></td>
              <td width="312"><?=$p_row[j_txqsyf]?></td>
            </tr>
          </tbody>
        </table>
</div>
<?php }?>
<?php if($p_row[j_htqx]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">合同期限：</span></td>
              <td width="312"><?=$p_row[j_htqx]?></td>
            </tr>
          </tbody>
        </table>
</div>	
<?php }?>	
<?php if($p_row[j_jmszs]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">加盟商总数：</span></td>
              <td width="312"><?=$p_row[j_jmszs]?></td>
            </tr>
          </tbody>
        </table>
</div>	
<?php }?>
<?php if($p_row[j_txjysj]){?>
<div class="procontent">
	  <table border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td width="160" align="right" bgcolor="#F8F8F5" ><span class="top6-3-1">特许经营时间：</span></td>
              <td width="312"><?=$p_row[j_txjysj]?></td>
            </tr>
          </tbody>
        </table>
</div>	
<?php }?>
		</td>
    </tr>
  </tbody>
</table>
<div class="content size14">
<?=unhtml($p_row[j_info])?>
<div align="center"><br>

<script type="text/javascript"><!--
google_ad_client = "ca-pub-2924453545159453";
/* 批发详细页 */
google_ad_slot = "6776530139";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br>
</div>
</div>
<div class="onl"></div>
</div>
<div class="messagesend sideyellow1">
<div class="title5"><span>您可以给供应商留言</span>
<div class="onl"></div>
</div>
<table width="100%" border="0" cellspacing="5">
  <tr>
    <td colspan="2">
	<?php 
	$rs=mysql_query("select * from m_message where is_jm=1 and m_type=4 and m_web='http://jm.sandib2b.cn/jiameng/xiangmu/".$p_row[id].".html' order by id desc limit 10");
	while($row=mysql_fetch_array($rs)){
	?>
	<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#E7E7E7">
      <tr>
        <td width="67%"><?=$row['m_name']?></td>
        <td width="33%">留言时间：<?=$row['add_time']?></td>
      </tr>
      <tr>
        <td colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="4%" align="center"><img src="/images/wenukd.gif" width="18" height="18" /></td>
            <td width="96%"><?=$row[m_content]?></td>
          </tr>
        </table></td>
        </tr>
    </table>
    <?php }?>  
	  </td>
    </tr>
</table>

<div class="n-1"><?php if($m_row[m_pic]){?><img src="http://img.sandib2b.cn/<?=$m_row[m_pic]?>" border="0" <?=imgstr("http://img.sandib2b.cn/$m_row[m_pic]","100","100")?>/><?php }else{?><img src="/images/photo.gif" width="100" height="100"><?php }?><span class="b"><?=$m_row[m_name]?>(<?=$m_row[m_sex]?>)</span>

<?php if($m_row['m_type']==6){?><a href="<?=$m_url?>certificate.htm" target="_blank"><img src="/images/member.gif" border="0" align="absmiddle" /></a><?php }else{echo "普通会员";}?>

<?php
	include("../common/contact.php");
	echo getContact($m_row["id"],false);
?>	

</div>
<div class="n-2">
  <table width="98%" border="0" cellpadding="2" cellspacing="0" bgcolor="#F2F2F2">
<form name="form1" method="post" action="/sent.php" onSubmit="return check()">
<input name="inquire_subject" type="hidden" value="<?=$p_row[j_title]?>">
<input type="hidden" name="to_id" value="<?=$m_row[id]?>">
    <tr>
      <td width="15%" height="25" align="right">留言内容：</td>
      <td width="85%"><textarea name="inquire_content" cols="60" rows="5" style="width:520px;" id="inquire_content"></textarea></td>
    </tr>
    <tr>
      <td height="25" align="right">联系人：</td>
      <td><input name="inquire_name" type="text" size="20" maxlength="20" id="inquire_name" /> <font color="#FF0000">*</font></td>
    </tr>
    <tr>
      <td height="25" align="right">联系电话：&nbsp;</td>
      <td><input name="inquire_tel" type="text" size="20" maxlength="20" id="inquire_tel" /> <font color="#FF0000">*</font></td>
    </tr>
    <tr>
      <td height="25" align="right">邮箱：</td>
      <td><input name="inquire_email" type="text" size="30" maxlength="200" id="inquire_email"/></td>
    </tr>
    <tr>
      <td height="25" align="right">QQ/MSN：</td>
      <td><input name="inquire_qq" type="text" size="25" maxlength="200" id="inquire_qq" /></td>
    </tr>
    <tr>
      <td height="25" align="right">联系地址：</td>
      <td><input name="inquire_addr" type="text" size="40" maxlength="250" id="inquire_addr" /> <font color="#FF0000">*</font></td>
    </tr>
    <tr>
      <td height="25" align="right">验证码：</td><input type="hidden" name="inquire_act" value="tijiao" />
      <td><input name="c_code" type="text" class="input" maxlength="6" style="width:60px;" id="c_code">
    &nbsp;&nbsp;<img src="<?php echo SITE_URL;?>inc/code.php" name="img" width="90" height="30" align="absmiddle" id="img">&nbsp;&nbsp;<a href="#" name="can not see" id="test">刷新</a></td>
    </tr>
    <tr>
      <td height="25" align="right">&nbsp;</td>
      <td><input type="submit" value=" 提 交 " /></td>
    </tr>
	</form>
  </table>
</div>
<div class="onl"></div>
</div>
<div id="main" class="topside20 side">
<script type="text/javascript">
/*960*90，加盟首页-创建于2011-11-9*/
var cpro_id = 'u672448';</script>
<script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>
<?php include("foot.php");?>
</body>
</html>
<script language="javascript">
function $(id){
return document.getElementById(id);
}
function check(){
if($("inquire_content").value==""){
alert("留言内容不能为空");
$("inquire_content").focus();
return false;
}
if($("inquire_name").value==""){
alert("请留下您的姓名");
$("inquire_name").focus();
return false;
}
if($("inquire_tel").value==""){
alert("请留下您的电话或手机");
$("inquire_tel").focus();
return false;
}

if($("inquire_addr").value==""){
alert("请留下您的联系地址");
$("inquire_addr").focus();
return false;
}

if($("c_code").value==""){
alert("验证码不能为空");
$("c_code").focus();
return false;
}
}
function test(img){
    var src=img.getAttribute("src");
    src=src+"?new="+Math.random(0,10);
    img.setAttribute("src",src);
}
function prepare(){
    var nav=document.getElementById("test");
    var name=nav.getAttribute("name");
    var str="can not see";
    if(name==str){
        nav.onclick=function(){
            var img=document.getElementById("img");
            test(img);
            return false;
        }
    }
}
window.onload=prepare;
</script>
<script type="text/javascript">/*120*270，创建于2011-3-23*/ var cpro_id = 'u419785';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>
